package com.project.ServiceImp;


import com.Entity.DzmHisSupplierEntity;
import com.alibaba.dubbo.config.annotation.Service;
import com.project.mapper.Ypweihu;
import org.springframework.stereotype.Component;
import qsh.WeihuService;

import javax.annotation.Resource;
import java.util.*;


@Service
@Component
public class ypweihuServicelmpl implements WeihuService {


    @Resource
    private Ypweihu yp;

/*药品信息维护*/
    @Override/*查询*/
    public List<Map<String, Object>> xinxi(Map map) {
        System.out.println("11111111111111111111111111111111111111111");
        return yp.xinxi(map);
    }

    @Override/*查询*/
    public List<Map<String, Object>> drcx(Map map) {
        return yp.drcx(map);
    }


    @Override/*删除*/
    public int delect(Integer medicines_id) {

       int i = yp.delect(medicines_id);
       return i;
    }

    @Override/*导入*/
    public int add(List arrays) {

        int i = yp.add(arrays);
        System.out.println(arrays);
        return i;
    }

    /*查询*/
    @Override
    public List<Map<String, Object>> supplier(Map map) {
        return yp.supplier(map);
    }

    @Override/*新增*/
    public void gysadd(Map map) {
      /*  System.out.println(map.get("supplier_name"));
        System.out.println(map.get("address"));
        System.out.println(map.get("contact_name"));
        System.out.println(map.get("contact_mobile"));
        System.out.println(map.get("contact_telephone"));
        System.out.println(map.get("bank_account"));*/
         yp.gysadd(map);
    }

    @Override/*删除*/
    public int delectsupp(Integer sid) {
        int i = yp.delectsupp(sid);
        return i;
    }

    @Override/*修改准备*/
    public List<Map<String, Object>> ready(Map map) {
        return yp.ready(map);
    }

    @Override/*修改*/
    public void updete(Map map) {
        yp.updete(map);
    }

    @Override
    public List<Map<String, Object>> yaopin(Map map) {
        return yp.yaopin(map);
    }

    @Override
    public List<Map<String, Object>> tianjia(List str) {
        return yp.tianjia(str);
    }

    /*新增采购表*/
    @Override
    public int Purchaseadd(List<Map<String,Object>> params) {
        System.out.println(params);;
        int a = yp.Purchaseadd(params);
        return a;
    }

    /*新增批次库存表*/
    @Override
    public int addin(Map map) {
        yp.addin(map);
        System.out.println();
       return Integer.parseInt(map.get("batchesOfInventoryId")+"");
    }

    /*直接入库*/
    @Override
    public int Stockadd(List<Map<String, Object>> stock) {
        System.out.println(stock);;
        int a = yp.Stockadd(stock);
        return 0;
    }

    /*查询供应商*/
    @Override
    public List<Map<String, Object>> gongys(Map map) {
        return yp.gongys(map);
    }

    @Override
    public List<Map<String, Object>> Toexamine(Map map) {
        return yp.Toexamine(map);
    }

    @Override
    public List<Map<String, Object>> seequery(Map map) {
        return yp.seequery(map);
    }

    @Override
    public List<Map<String, Object>> oddnumbers(Map map) {
        return yp.oddnumbers(map);
    }

    @Override
    public int delectcg(Integer purchase_id) {
        int c = yp.delectcg(purchase_id);
        return c;
    }

    @Override
    public void updatestate(Map map) {
        yp.updatestate(map);
    }

    @Override
    public List<Map<String, Object>> kucun(Map map) {
        return yp.kucun(map);
    }

    @Override
    public List<Map<String, Object>> zhunb(Map map) {
        return yp.zhunb(map);
    }

    @Override
    public void updateid(Map map) {
        yp.updateid(map);
    }


}


